Page({
    data: {
      imageList:[
      'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/QQ图片20220511173630.jpg',
      'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/QQ图片20220511173626.jpg',
      'cloud://cloud-0gcgpg1s3be0f7e5.636c-cloud-0gcgpg1s3be0f7e5-1311275034/图片/QQ图片20220511173622.jpg',
  
    ],
    imageList2:[
      'https://636c-cloud-0gcgpg1s3be0f7e5-1311275034.tcb.qcloud.la/%E5%9B%BE%E7%89%87/%E5%9B%BE%E6%A0%87_%E7%94%BB%E6%9D%BF%201%20%E5%89%AF%E6%9C%AC%2021.jpg?sign=4c412f592be637fca481610c2f17e45a&t=1652456722',
      'https://636c-cloud-0gcgpg1s3be0f7e5-1311275034.tcb.qcloud.la/%E5%9B%BE%E7%89%87/%E5%9B%BE%E6%A0%87_%E7%94%BB%E6%9D%BF%201%20%E5%89%AF%E6%9C%AC%2020.jpg?sign=bcee846e42364a7314a79b129dd333a3&t=1652456778',
      'https://636c-cloud-0gcgpg1s3be0f7e5-1311275034.tcb.qcloud.la/%E5%9B%BE%E7%89%87/%E5%9B%BE%E6%A0%87_%E7%94%BB%E6%9D%BF%201%20%E5%89%AF%E6%9C%AC%2010.jpg?sign=2ecebc000af83dea382bf65dbd1e218e&t=1652456790',
    ],
    latitude: 30.201467,
    longitude: 103.867654,
    //标记点
    markers: [{
      id: 0,
      name: "YEX•壹心街舞",
      address: "四川省眉山市彭山区仁和城邦商铺2栋2-5",
      latitude: 30.201467,
      longitude: 103.867654,
      src: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/markerNew.png',
    }]
    },
      Call() {
          wx.makePhoneCall({
          phoneNumber: '18628962576'
          })
      },
      navRoad(event) {
          console.log(event)
          wx.getLocation({ //获取当前经纬度
          type: 'wgs84', //返回可以用于wx.openLocation的经纬度，
          success: function (res) {
              wx.openLocation({ //使用微信内置地图查看位置。
              latitude: event.currentTarget.dataset.marker.latitude, //要去的纬度-地址
              longitude: event.currentTarget.dataset.marker.longitude, //要去的经度-地址
              name: event.currentTarget.dataset.marker.name,
              address: event.currentTarget.dataset.marker.address
              })
          }
          })
      }
  })